import Flutter
import UIKit

public class SwiftFgetFilePlugin: NSObject, FlutterPlugin {
  public static func register(with registrar: FlutterPluginRegistrar) {
    let channel = FlutterMethodChannel(name: "fget_file", binaryMessenger: registrar.messenger())
    let instance = SwiftFgetFilePlugin()
    registrar.addMethodCallDelegate(instance, channel: channel)
  }

  public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
    print("进入ios原生")
    switch call.method {
        case "getFiles":
            print("从ios获取文件")
        default:
        result("ios 未实现此接口")
    }
    result("iOS----- " + UIDevice.current.systemVersion)
  }
}
